package com.ktgj.train.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.train.mapper.TrainOrderPaymentdetailMapper;
import com.ktgj.train.domain.TrainOrderPaymentdetail;
import com.ktgj.train.service.ITrainOrderPaymentdetailService;

/**
 * 订单付款明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-29
 */
@Service
public class TrainOrderPaymentdetailServiceImpl implements ITrainOrderPaymentdetailService 
{
    @Autowired
    private TrainOrderPaymentdetailMapper trainOrderPaymentdetailMapper;

    /**
     * 查询订单付款明细
     * 
     * @param detailid 订单付款明细ID
     * @return 订单付款明细
     */
    @Override
    public TrainOrderPaymentdetail selectTrainOrderPaymentdetailById(Long detailid)
    {
        return trainOrderPaymentdetailMapper.selectTrainOrderPaymentdetailById(detailid);
    }

    /**
     * 查询订单付款明细列表
     * 
     * @param trainOrderPaymentdetail 订单付款明细
     * @return 订单付款明细
     */
    @Override
    public List<TrainOrderPaymentdetail> selectTrainOrderPaymentdetailList(TrainOrderPaymentdetail trainOrderPaymentdetail)
    {
        return trainOrderPaymentdetailMapper.selectTrainOrderPaymentdetailList(trainOrderPaymentdetail);
    }

    /**
     * 新增订单付款明细
     * 
     * @param trainOrderPaymentdetail 订单付款明细
     * @return 结果
     */
    @Override
    public int insertTrainOrderPaymentdetail(TrainOrderPaymentdetail trainOrderPaymentdetail)
    {
        return trainOrderPaymentdetailMapper.insertTrainOrderPaymentdetail(trainOrderPaymentdetail);
    }

    /**
     * 修改订单付款明细
     * 
     * @param trainOrderPaymentdetail 订单付款明细
     * @return 结果
     */
    @Override
    public int updateTrainOrderPaymentdetail(TrainOrderPaymentdetail trainOrderPaymentdetail)
    {
        return trainOrderPaymentdetailMapper.updateTrainOrderPaymentdetail(trainOrderPaymentdetail);
    }

    /**
     * 批量删除订单付款明细
     * 
     * @param detailids 需要删除的订单付款明细ID
     * @return 结果
     */
    @Override
    public int deleteTrainOrderPaymentdetailByIds(Long[] detailids)
    {
        return trainOrderPaymentdetailMapper.deleteTrainOrderPaymentdetailByIds(detailids);
    }

    /**
     * 删除订单付款明细信息
     * 
     * @param detailid 订单付款明细ID
     * @return 结果
     */
    @Override
    public int deleteTrainOrderPaymentdetailById(Long detailid)
    {
        return trainOrderPaymentdetailMapper.deleteTrainOrderPaymentdetailById(detailid);
    }
}
